home *** CD-ROM | disk | FTP | other *** search
- /* v s s c a n f
- *
- * This function provides the same functionality as sscanf except
- * that it uses varargs.h.
- *
- * Patchlevel 1.0
- *
- * Edit History:
- */
-
- #include "stdiolib.h"
-
- /*LINTLIBRARY*/
-
- int vsscanf(buf, fmt, args)
-
- char *buf; /* output buffer */
- char *fmt; /* format */
- va_list args; /* argument list */
-
- {
- FILE f; /* temporary file */
- int strlen(); /* get length of string */
-
- f._flag = _IOREAD | _IOSTRING;
- f._base = (unsigned char *) buf;
- f._bufsiz = strlen(buf);
-
- INITREADBUFFER(&f, f._bufsiz);
-
- return vfscanf(&f, fmt, args);
- }
-